package com.example.apiversioncontroldemo.web.v202401;

import com.example.apiversioncontroldemo.util.vcon.ApiVersion;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chen.cr
 * @since 2023/10/18
 */
@RestController
@RequestMapping("/{version}/hello")
@ApiVersion(version = 202401, description = "版本说明：xxx")
public class HelloV202401Controller {

    @GetMapping("/test1")
    public String test1(String name) {
        return "Name is: " +  name + ".  (This is 'v202401' api interface.)";
    }


}
